package com.lhd.ivos.base.exception;


import com.lhd.ivos.base.response.StatusCode;
import lombok.Getter;
/**
 * @author lhd
 * date 2024/5/20
 * @apiNote
 */


//1.自定义业务异常类
public class ServiceException extends RuntimeException{
    @Getter
    private StatusCode statusCode;
    //Alt+Insert 一直回车 生成该类的构造函数
    public ServiceException(StatusCode statusCode) {
        this.statusCode = statusCode;
    }
}
